<%@page import="helpers.StringHelper"%>
<%@page import="helpers.UrlHelper"%>
<%@page import="entities.Directory"%>
<%@page import="java.util.ArrayList"%>
<%@page import="java.util.List"%>
<%
Directory directory = (Directory) request.getAttribute("directory");
List<String> domains = directory.getDomains();

//Set content for seo
String title = "Directory " + directory.getId();
String description = "Directory site with word first is " + directory.getId() + ". There are many site in directory as :" + StringHelper.listToString(domains, ", ", 5);
String keywords = "directory " + directory.getId() + ", directory domain, web site analysis, website traffic details, server information, website ranking info, check information my domain" ;
String url = UrlHelper.getServerUrl(request) + "/directory/" + directory.getId();
%>

<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<jsp:include page="/layouts/header.jsp">
	<jsp:param name="title" value="<%=title %>" />
    <jsp:param name="description" value="<%=description %>" />
    <jsp:param name="keywords" value="<%=keywords %>" />
    <jsp:param name="ogtitle" value="<%=title %>" />
    <jsp:param name="ogurl" value="<%=url %>" />
    <jsp:param name="ogdescription" value="<%=description%>" />
</jsp:include>

<script type="text/javascript" src="/js/directory.js"></script>

<script type="text/javascript">
var c = "<%=directory.getId()%>";
</script>	


                <div id="leftSideContent">                    
                	<section class="block">
                    	<div class="blockContent">
                    		<h3 class="blockHeading"><span>Directory</span></h3>
                            <div class="clearafter">
                            	<div class="form-input">	                            	
	                            	<div class="directory clearafter title">
		                            	<a href="/directory/a">a</a>
		                            	<a href="/directory/b">b</a>
		                            	<a href="/directory/c">c</a>
		                            	<a href="/directory/d">d</a>
		                            	<a href="/directory/e">e</a>
		                            	<a href="/directory/f">f</a>
		                            	<a href="/directory/g">g</a>
		                            	<a href="/directory/h">h</a>
		                            	<a href="/directory/i">i</a>
		                            	<a href="/directory/j">j</a>
		                            	<a href="/directory/k">k</a>
		                            	<a href="/directory/l">l</a>
		                            	<a href="/directory/m">m</a>
		                            	<a href="/directory/n">n</a>
		                            	<a href="/directory/o">o</a>
		                            	<a href="/directory/p">p</a>
		                            	<a href="/directory/q">q</a>
		                            	<a href="/directory/r">r</a>
		                            	<a href="/directory/s">s</a>
		                            	<a href="/directory/t">t</a>
		                            	<a href="/directory/u">u</a>
		                            	<a href="/directory/v">v</a>
		                            	<a href="/directory/w">w</a>
		                            	<a href="/directory/x">x</a>
		                            	<a href="/directory/y">y</a>
		                            	<a href="/directory/z">z</a>
		                            	<a href="/directory/0">0</a>
		                            	<a href="/directory/1">1</a>
		                            	<a href="/directory/2">2</a>
		                            	<a href="/directory/3">3</a>
		                            	<a href="/directory/4">4</a>
		                            	<a href="/directory/5">5</a>
		                            	<a href="/directory/6">6</a>
		                            	<a href="/directory/7">7</a>
		                            	<a href="/directory/8">8</a>
		                            	<a href="/directory/9">9</a>
		                            </div>
                                    <div class="gridLayout gridLayout3 clearafter">                                    	
                                    	<div class="gridCol">
                                            <ul>
                                            	<% for (int i = 0; i < domains.size(); i=i+3) { %>
												<li>
													<a href="/info/<%=domains.get(i) %>" alt="<%=domains.get(i) %>" title="<%=domains.get(i) %>"><%=domains.get(i) %></a>
												</li>
												<% } %>
											</ul>
                                        </div>
                                        <div class="gridCol">
                                            <ul>
												<% for (int i = 1; i < domains.size(); i=i+3) { %>
												<li>
													<a href="/info/<%=domains.get(i) %>" alt="<%=domains.get(i) %>" title="<%=domains.get(i) %>"><%=domains.get(i) %></a>
												</li>
												<% } %>
											</ul>
                                        </div>
                                        <div class="gridCol lastCol">
                                            <ul>
												<% for (int i = 2; i < domains.size(); i=i+3) { %>
												<li>
													<a href="/info/<%=domains.get(i) %>" alt="<%=domains.get(i) %>" title="<%=domains.get(i) %>"><%=domains.get(i) %></a>
												</li>
												<% } %>
											</ul>
                                        </div>
                                    </div>
	                                
	                                
	                            </div>
                            </div>
                        </div>
                        <div class="blockShadow"></div>
                    </section>                	
                </div>
                
                <!-- right content -->
                <jsp:include page="/elements/right.jsp" />
                <!-- end right content -->
                
<jsp:include page="/layouts/footer.jsp" />